﻿#ifndef __BG35_H
#define __BG35_H
#include "sys.h"
#include "usart.h"
#include "time.h"
#include "sys.h"
#include "tool.h"
extern unsigned short interval_isRSP_timeout;
extern unsigned short remainTime_isRSP_timeout;
BOOL BG35_isRSP(void);
BOOL BG35_isSerialPortBufferEmpty(void);
unsigned short BG35_getSerialPortBufferSize(void);
unsigned short BG35_getDataFromUdpDataBuffer(char data[], unsigned short *dataSize);
BOOL BG35_waitForBaseStationConnect(const unsigned short maxWaitTime_ms);
BOOL BG35_waitForOpenSocket(const unsigned short maxWaitTime_ms);
BOOL BG35_isUdpDataBufferEmpty(void);
BOOL BG35_judgeInstruction(const char *instruction);
void BG35_sendData_queue(void);
void BG35_decode(void);
void USART1_IRQHandler(void);
void BG35_init(void);
void BG35_AT(void);
void BG35_AT_NSOCR(void);
void BG35_AT_NSOCL(void);
void BG35_AT_NSOST(const char* data,const unsigned short dataLen);
void BG35_AT_NSORF(const char* socketID,const char* len);
void BG35_AT_CEREG(void);
#endif
